namespace SinaFinance.ChartLibrary.StockTopFiveChangesLibrary
{
    using System;
    using System.Diagnostics;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Media.Animation;

    public partial class StockTopFiveTip : UserControl
    {
        //private bool _contentLoaded;
        //internal Border border;
        //internal Storyboard floatMouseEnter;
        //internal Storyboard floatMouseEnter_Copy1;
        //internal Grid LayoutRoot;
        //internal TextBlock tblInfo;

        public StockTopFiveTip()
        {
            this.InitializeComponent();
            base.Loaded += new RoutedEventHandler(this.StockTopFiveTip_Loaded);
        }

        //[DebuggerNonUserCode]
        //public void InitializeComponent()
        //{
        //    if (!this._contentLoaded)
        //    {
        //        this._contentLoaded = true;
        //        Application.LoadComponent(this, new Uri("/SinaFinance;component/ChartLibrary/StockTopFiveChangesLibrary/StockTopFiveTip.xaml", UriKind.Relative));
        //        this.floatMouseEnter = (Storyboard) base.FindName("floatMouseEnter");
        //        this.floatMouseEnter_Copy1 = (Storyboard) base.FindName("floatMouseEnter_Copy1");
        //        this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
        //        this.border = (Border) base.FindName("border");
        //        this.tblInfo = (TextBlock) base.FindName("tblInfo");
        //    }
        //}

        public void RemoveTip()
        {
            this.tblInfo.Text = string.Empty;
            this.floatMouseEnter_Copy1.Begin();
        }

        public void RenderTip(string content)
        {
            this.tblInfo.Text = content;
            this.floatMouseEnter.Begin();
        }

        private void StockTopFiveTip_Loaded(object sender, RoutedEventArgs e)
        {
        }
    }
}
